package router

import (
	"gin-vue-admin/server/middleware"
	"gin-vue-admin/server/plugin/email/api"
	"github.com/gin-gonic/gin"
)

type EmailRouter struct{}

func (s *EmailRouter) InitEmailRouter(rootRouter *gin.RouterGroup) {
	emailRouter := rootRouter.Use(middleware.OperationRecord())
	{
		emailRouter.POST("emailTest", api.GroupApp.EmailApi.EmailTest) // 发送测试邮件
		emailRouter.POST("sendEmail", api.GroupApp.EmailApi.SendEmail) // 发送邮件
	}
}
